<template>
  <div class="view-container">
    <code>Tinymce<a target='_blank' href='https://segmentfault.com/a/1190000009762198#articleHeader13'> 相关文章 </a> <a target='_blank' href='https://www.tinymce.com/'> 官网 </a></code>
    <div>
      <tinymce :height='300' v-model="content"></tinymce>
    </div>

    <div class='editor-content' v-html='content'></div>
  </div>
</template>

<script>
  import Tinymce from '@/components/Tinymce';

  export default {
    components: { Tinymce },
    data() {
      return {
        content: ''
      }
    }
  }
</script>

<style scoped>
  .editor-content{
    margin-top: 20px;
  }
</style>